using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;


public class ClassB : InterfaceA
{
    public int Method(int n)
    {
        int factorial = 1;
        for (int i = 1; i <= n; i++)
        {
            factorial *= i;
        }
        return factorial;
    }
}
